home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 20 / Cream of the Crop 20 (Terry Blount) (1996).iso / virus / fp_223a.zip / VIRUS.DOC < prev   
Text File  |  1996-02-11  |  10KB  |  217 lines

  1.  
  2.                          Computer Viruses: An Introduction
  3.  
  4. What is a computer virus ?
  5.  
  6. Well, the best definition we have been able to come up with is the
  7. following 4-part one:
  8.  
  9.    #1 A virus is a program that is able to replicate, that is create
  10.       (possibly modified) copies of itself.
  11.  
  12.    #2 The replication is intentional, not just a side-effect.  
  13.  
  14.    #3 At least some of replicants in turn are also viruses by the same
  15.       definition.
  16.  
  17.    #4 A virus has to attach itself to a "host", in the sense that
  18.       execution of the host implies execution of the virus.  
  19.  
  20. #1 distinguishes viruses from non-replicating malware, such as Trojans,
  21. ANSI bombs and logic Bombs.
  22.  
  23. #2 distinguishes between viruses and programs such as DISKCOPY.COM
  24. that can replicate.
  25.  
  26. #3 is needed to exclude certain "intended viruses", that attempt to
  27. replicate, but fail - they simply do not qualify as "real" viruses.
  28.  
  29. #4 is necessary to distinguish between viruses and worms, which do not
  30. require a host.
  31. A Trojan is a program that pretends to do something useful (or at least
  32. interesting), but when it is run, it may have some harmful effect, like
  33. scrambling your FAT (File Allocation Table) or formatting the hard disk.
  34.  
  35. Viruses and Trojans may contain a "time-bomb", intended to destroy
  36. programs or data on a specific date or when some condition has been
  37. fulfilled.
  38.  
  39. A time bomb is often designed to be harmful, maybe doing something like
  40. formatting the hard disk.  Sometimes it is relatively harmless, perhaps 
  41. slowing the computer down every Friday or making a ball bounce around the
  42. screen.  However, there is really no such thing as a harmless virus.  Even if
  43. a virus has been intended to cause no damage, it may do so in certain cases,
  44. often due to the incompetence of the virus writer or unexpected hardware
  45. or software revisions.
  46.  
  47. A virus may be modified, either by the original author or someone else, so
  48. that a more harmful version of it appears.  It is also possible that the
  49. modification produces a less harmful virus, but that has only rarely
  50. happened.
  51.  
  52. The damage caused by a virus may consist of the deletion of data or
  53. programs, maybe even reformatting of the hard disk, but more subtle damage
  54. is also possible.  Some viruses may modify data or introduce typing errors
  55. into text.  Other viruses may have no intentional effects other than just
  56. replicating.
  57.  
  58. The major groups of viruses on PCs are boot sector viruses (BSV), program
  59. viruses and application viruses.
  60.  
  61. A BSV infects boot sectors on diskettes and/or hard disks.  On diskettes, 
  62. the boot sector normally contains code to load the operating system files. 
  63. The BSV replaces the original boot sector with itself and stores the
  64. original boot sector somewhere else on the diskette or simply replaces it
  65. totally.  When a computer is then later booted from this diskette, the
  66. virus takes control and hides in RAM.  It will then load and execute the
  67. original boot sector, and from then on everything will be as usual. 
  68. Except, of course, that every diskette inserted in the computer will be
  69. infected with the virus, unless it is write-protected.
  70.  
  71. A BSV will usually hide at the top of memory, reducing the amount of
  72. memory that the DOS sees.  For example, a computer with 640K might appear
  73. to have only 639K.
  74.  
  75. Most BSVs are also able to infect hard disks, where the process is similar
  76. to that described above, although they usually infect the master boot
  77. record instead of the DOS boot record.
  78.  
  79. Program viruses, the second type of computer viruses, infect executable
  80. programs, usually .COM and .EXE files, but sometimes also overlay files,
  81. device drivers or even object files.
  82.  
  83. An infected program will contain a copy of the virus, usually at the end,
  84. in some cases at the beginning of the original program, and in a few cases
  85. the virus is inserted in the middle of the original program.
  86.  
  87. When an infected program is run, the virus may stay resident in memory
  88. and infect every program run.  Viruses using this method to spread the
  89. infection are called "Resident Viruses".
  90.  
  91. Other viruses may search for a new file to infect, when an infected
  92. program is executed.  The virus then transfers control to the original
  93. program.  Viruses using this method to spread the infection are
  94. called "Direct Action Viruses".  It is possible for a virus to use both
  95. methods of infection.
  96.  
  97. Most viruses try to recognize existing infections, so they do not infect
  98. what has already been infected.  This makes it possible to inoculate
  99. against specific viruses, by making the "victim" appear to be infected.
  100. However, this method is useless as a general defense, as it is not 
  101. possible to inoculate the same program against multiple viruses.
  102.  
  103. The third type of viruses are application viruses, which do not infect
  104. normal programs, but instead spread as "macros" in various types of files,
  105. typically word-processor documents or spreadsheets.
  106.  
  107. In general, viruses are just program - rather unusual programs perhaps,
  108. but written just like any other program.  It does not take a genius to
  109. write one - any average assembly language programmer can easily do it. 
  110. Fortunately, few of them do.
  111.  
  112. Now - to correct some common misconceptions, here are a few bits of
  113. information about what viruses cannot do.
  114.  
  115.         A virus cannot appear all by itself, it has to be written, just
  116.         like any other program.
  117.         
  118.         Not all viruses are intentionally harmful - some may only cause
  119.     minor damage as a side effect - however, there is no such thing
  120.     as a "harmless" virus.
  121.  
  122.     Reading data from an infected diskette cannot cause an infection.
  123.  
  124.         A write-protected diskette cannot become infected, if the
  125.     hardware is working properly.
  126.  
  127. It used to be the case that a virus could not infect a computer unless it
  128. was booted from an infected diskette or an infected program was run on it,
  129. but alas, this is no longer true.  It is possible for a virus infection to
  130. spread, just by the act of reading an infected Microsoft Word document,
  131. for example, or through use of Lotus Notes, to name two well-known
  132. applications.
  133.  
  134. It also used to be the case that a virus could not infect data files or
  135. spread from one type of computer to another - a virus designed to infect
  136. Macintosh computers could not infect PCs or vice versa, but with the
  137. appearance of application viruses this has changed as well - there are now
  138. a few viruses that can infect WinWord as well as MacWord.
  139.  
  140. Apart from using anti-virus programs, there are several ways to protect
  141. your computer from viruses:
  142.  
  143.         Rule #1 is: MAKE BACKUPS!!!  Keep good backups (more than one) of
  144.         everything you do not want to lose.  This will not only protect you
  145.         from serious damage caused by viruses, but is also necessary in the
  146.         case of a serious hardware failure.
  147.  
  148.         Never boot a computer with a hard disk from a diskette because that
  149.         is the only way the hard disk could become infected with a BSV.
  150.         (well, strictly speaking, it can happen if you run a "dropper"
  151.         program too, but that happens extremely rarely).
  152.  
  153.     If your BIOS allows you to change the boot sequence to "C: A:",
  154.     do it. This will give you very good protection against boot
  155.      sector virus infections.
  156.  
  157.         Should you, by accident, have left a non-bootable diskette in
  158.         drive A: when you turn the computer on, the message
  159.  
  160.                         Not a system disk.
  161.  
  162.         may appear.  If the diskette was infected with a virus, it will now
  163.         be active, but may not have infected the hard disk yet. if this
  164.         happens, turn the computer off, or press the reset button.  It is
  165.         important to note that pressing Ctrl-Alt-Del will not be sufficient,
  166.         as a few viruses can survive that.
  167.  
  168.         If the computer has no hard disk, but is booted from a diskette,
  169.         you should always use the same diskette, and keep it write-protected.
  170.  
  171.         Keep all diskettes write-protected unless you need to write to them.
  172.         When you obtain new software on a diskette, write-protect the
  173.